package com.example.exam.service;

import com.example.exam.mapper.UserRoleMapper;
import com.example.exam.pojo.UserRole;
import com.example.exam.service.imp.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class MyUserRoleService implements UserRoleService {

    @Autowired
    UserRoleMapper userRoleMapper;

    @Override
    public int insertUserRole(UserRole userRole) {
        return 0;
    }

    @Override
    public int deleteUserRoleByUserId(Long id) {
        return 0;
    }

    @Override
    public Set<String> selectRoleByUserId(Long id) {
        return userRoleMapper.selectRoleByUserId(id);
    }
}
